<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
    <meta name="theme-color" content="#000000">
    <link rel="manifest" href="/manifest.json">
    <link rel="shortcut icon" href="imags/logo.jpg">
    <title>币拍</title>
    <link href="./css/login.css" rel="stylesheet">
</head>
<body class="">
    <div id="root">
        <div>
            <main class="closed">
                <header class="hero styles-module__header__3OdzN">
                    <div class="level is-mobile">
                        <div class="level-left">
                            <div class="control level-item is-hidden-tablet">
                                <button class="button is-primary u-mr1 styles-module__menu_toggle__2MyVZ">
                                    <span class="icon-menu"></span>
                                </button>
                            </div>
                            <div class="level-item">
                                <a>
                                    <img alt="" class="image styles-module__logo__16ihP" src="imags/logo.jpg">
                                </a>
                            </div>
                            <p style="font-size: 25px">币拍——分享图片，七天得钱</p>
                        </div>
                    </div>
                </header>
                <div class="wrapper">
                    <aside class="sidebar">
                        <div class="menu p-lg styles-module__menu__1tOsh">
                            <div class="u-p3 styles-module__financials__1h2JL">
                                <div class="-is-logged-in">
                                    <div class="financials styles-module__financials__1gGoW">
                                        <figure class="image styles-module__profile_thumbnail__3j_6P">
                                            <img src="imags/user.png">
                                        </figure>
                                    </div>
                                </div>
                            </div>
                            <ul class="menulist styles-module__menulist__xOWHq">
                                <li>
                                    <ul class="menulist styles-module__menulist__xOWHq styles-module__logged_in__Zm432">
                                        <li>
                                            <a aria-current="true" href="assets.html" class="styles-module__active__2Jlfl">
                                                <span class="icon-transfer u-mr1"></span>资产
                                            </a>
                                        </li>
                                        <li>
                                            <a aria-current="false" href="transfor.html">
                                                <span class="icon-account u-mr1"></span>转账
                                            </a>
                                        </li>
                                        <li>
                                            <a aria-current="false" href="history.html">
                                                <span class="icon-account u-mr1"></span>记录
                                            </a>
                                        </li>
                                        <li>
                                            <a aria-current="false" href="infos.html">
                                                <span class="icon-account u-mr1"></span>信息
                                            </a>
                                        </li>
                                        <li>
                                            <a aria-current="false" href="login.html">
                                                <span class="icon-logout u-mr1"></span>退出
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </aside>
                    <section class="body closed">
                        <div class="menu-closer" role="button" tabindex="0">
                        </div>
                        <div class="columns is-desktop content is-variable is-6">
                            <div class="column is-7-desktop is-12-tablet">
                                <article class="u-mb6">
                                    <h2 class="title is-2">资产</h2>
                                    <div class="field">
                                        <label class="label" style="font-size: 25px">eos_balance:</label>
                                        <p style="font-size: 25px">0.00</p>
                                    </div>
                                    <div class="field">
                                        <label class="label" style="font-size: 25px">staked_balance:</label>
                                        <p style="font-size: 25px">0.00</p>
                                    </div>
                                    <div class="field">
                                        <label class="label" style="font-size: 25px">unstaking_balance:</label>
                                        <p style="font-size: 25px">0.00</p>
                                    </div>
                                </article>
                            </div>
                            <div class="column is-5-desktop is-12-tablet">
                                <article class="section">
                                    <h5 class="title is-5">这些资产是什么?</h5>
                                    <div class="box" style="font-size: 25px">eos_balance是...,代表...。</br> staked_balance是...,代表...。</br> unstaking_balance是...,代表...。</div>
                                </article>
                            </div>
                        </div>
                    </section>
                </div>
            </main>
        </div>
    </div>
    <script src="./plugins/layui/layui.js"></script>
    <script src="./js/config.js"></script>
    <script type="text/javascript">
        layui.use(['table','form','element'],function () {
            var $ = layui.$;
            var table = layui.table;
            var form = layui.form;
            var element = layui.element;

            $('#get_account').on('click',function (){
                var jsons = {};
                jsons.name = $('input[name="name"]').val();
                $.ajax({
                    url: contextPath+"chain/account",
                    type: "POST",
                    contentType:"application/json;charset=utf-8",
                    dataType:"json",
                    data:JSON.stringify(jsons),
                    success:function (data) {
                        $('input[name="name1"]').attr("value",data.name);
                        $('input[name="eos_balance"]').attr("value",data.eos_balance);
                        $('input[name="staked_balance"]').attr("value",data.staked_balance);
                        $('input[name="unstaking_balance"]').attr("value",data.unstaking_balance);
                        $('input[name="last_unstaking_time"]').attr("value",data.last_unstaking_time);
                        $('input[name="permissions"]').attr("value",data.permissions);
                    },
                    error:function () {
                    }
                });
            });
        });
    </script>
</body>
</html>